#!/bin/bash

# If the option is --cflags
if [[ "$1"x == "--cflags"x ]] ; then
    uname -a | grep "Ubuntu" &> /dev/null
    if [[ $? -eq 0 ]] ; then 
        echo ""                 # Don't need anything extra for ubuntu
    else    
        echo "-D__HOPPER__"     # Extra macro for hopper
    fi
fi

# If the option is --ldflags
if [[ "$1"x == "--ldflags"x ]] ; then
    uname -a | grep "Ubuntu" &> /dev/null
    if [[ $? -eq 0 ]] ; then 
        echo "-lgsl -lcblas -latlas -lm" # Shitload of extra libs
    else    
        echo ""                 # CC takes care of stuff on hopper
    fi
fi
